$OpenBSD: patch-cmake_Modules_FindProtobufC_cmake,v 1.1 2014/09/04 12:33:27 dcoppa Exp $
--- cmake/Modules/FindProtobufC.cmake.orig	Fri Aug  8 08:37:03 2014
+++ cmake/Modules/FindProtobufC.cmake	Thu Sep  4 13:27:27 2014
@@ -1,10 +1,6 @@
 include(FindPackageHandleStandardArgs)
 
-find_path(PROTOBUFC_INCLUDE_DIR NAMES "protobuf-c.h" PATHS /usr/pkg /usr/local /usr PATH_SUFFIXES "include/google/protobuf-c")
-find_path(PROTOBUFC_LIB_DIR NAMES "libprotobuf-c.so" "libprotobuf-c.dylib" PATHS /usr/pkg /usr/local /usr PATH_SUFFIXES "lib"  "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
+find_path(PROTOBUFC_INCLUDE_DIR NAMES "protobuf-c.h" PATH_SUFFIXES "protobuf-c")
+find_library(PROTOBUFC_LIBRARIES NAMES "protobuf-c")
 
-if(PROTOBUFC_INCLUDE_DIR AND PROTOBUFC_LIB_DIR)
-  set(PROTOBUFC_LIBRARIES protobuf-c)
-endif(PROTOBUFC_INCLUDE_DIR AND PROTOBUFC_LIB_DIR)
-
-find_package_handle_standard_args(ProtobufC REQUIRED_VARS PROTOBUFC_INCLUDE_DIR PROTOBUFC_LIBRARIES PROTOBUFC_LIB_DIR)
+find_package_handle_standard_args(ProtobufC REQUIRED_VARS PROTOBUFC_INCLUDE_DIR PROTOBUFC_LIBRARIES)
